home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / DTS.Draw / TearOff.MDEF.make < prev    next >
Encoding:
Text File  |  1994-05-05  |  1.2 KB  |  38 lines  |  [TEXT/MPS ]

  1. #   File:       TearOff.MDEF.make
  2. #   Target:     TearOff.MDEF
  3. #   Sources:    TearOff.MDEF.c
  4. #   Created:    Tuesday, August 25, 1992 3:25:05 PM
  5.  
  6. OBJECTS = TearOff.MDEF.c.o
  7.  
  8. DTS.Lib.folder    =    "::DTS.Lib:"
  9. DTS.Lib.hdrs    =    "::DTS.Lib:DTS.Lib.headers:"
  10. IncludesFolders    =    -i {DTS.Lib.hdrs}
  11. COptions        =    {IncludesFolders} {SymOptions} -r -b -b2 -mbg on
  12.  
  13. # Link the thing
  14. # options
  15. # -t -c Put it in a ResEdit resource file
  16. # -rt  Make it a resource type of MDEF with an ID of 512
  17. # -m Main entry point main()
  18. # -sg Make it a segment called TearOff.MDEF
  19. #  And link it with TearOff.MDEF.c.o and Interface.o
  20.  
  21. TearOff.MDEF ƒƒ TearOff.MDEF.make {OBJECTS}
  22.     Link -t rsrc -c RSED -rt 'MDEF 512' -m MAIN -sg TearOff.MDEF ∂
  23.         {OBJECTS} ∂
  24.         "{Libraries}"Interface.o ∂
  25.         "{DTS.Lib.folder}"DTS.Lib_utils ∂
  26.         -o TearOff.MDEF
  27.     Delete TearOff.MDEF.c.o
  28. # Here you'd normally put your Rez line to move the MDEF into whatever app you 
  29. # want it in 
  30.  
  31. # C options I'm using are
  32. # -r Tell me if I forgot a prototype
  33. # -b -b2 put strings in the code instead of global space, make all
  34. # function calls PC relative, and overlay strings if you want
  35.  
  36. TearOff.MDEF.c.o ƒ TearOff.MDEF.make TearOff.MDEF.c
  37.      C {COptions} TearOff.MDEF.c
  38.